<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Inpainting: Référence de la classe Image</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Liste&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="functions.html"><span>Membres&nbsp;de&nbsp;classe</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe Image</h1><!-- doxytag: class="Image" -->
<p>Classe <a class="el" href="class_image.html" title="Classe Image RGB.">Image</a> RGB.  
<a href="#_details">Plus de détails...</a></p>

<p><code>#include &lt;<a class="el" href="_image_8h_source.html">Image.h</a>&gt;</code></p>

<p><a href="class_image-members.html">Liste de tous les membres</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#aa08fcce6d2eb9718daf554f05c9da5a4">Image</a> (int l=0, int h=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructeur.  <a href="#aa08fcce6d2eb9718daf554f05c9da5a4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a0294f63700543e11c0f0da85601c7ae5">~Image</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructeur.  <a href="#a0294f63700543e11c0f0da85601c7ae5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#afa9cf1dbd0c6a49d03c5601f5b8e714a">EcritPixel</a> (int x, int y, <a class="el" href="class_pixel.html">Pixel</a> couleur)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ecrit un pixel.  <a href="#afa9cf1dbd0c6a49d03c5601f5b8e714a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_pixel.html">Pixel</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a0cd0dd469b3d07cf8d80f0650e0065f1">LitPixel</a> (int x, int y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lit un pixel.  <a href="#a0cd0dd469b3d07cf8d80f0650e0065f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_image.html">Image</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a1574929d5f59c9d633717e63ae5d780d">FiltrageLineaire</a> (<a class="el" href="struct_filtre_lineaire.html">FiltreLineaire</a> *fl)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filtre l'image.  <a href="#a1574929d5f59c9d633717e63ae5d780d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_image.html">Image</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a119bed9cece01481f95b4ea17576ddc5">Laplacien</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calcul le laplacien.  <a href="#a119bed9cece01481f95b4ea17576ddc5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_image.html">Image</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a4c36d95a80d8d185e023436ed900e90e">CopierImage</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copie une image.  <a href="#a4c36d95a80d8d185e023436ed900e90e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#ab1ffb3a3fb2af6590a941814c2b2074d">toSprite</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Transforme l'image en GLubyte.  <a href="#ab1ffb3a3fb2af6590a941814c2b2074d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a8745ab6aa9ec36b6f1f71a918cf7d9ae">Afficher</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Afficher l'image.  <a href="#a8745ab6aa9ec36b6f1f71a918cf7d9ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#ab211ae66dd9c6cdaf6ce1989b18d9110">chargePPM</a> (const char *nom_fichier)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Charge une image PPM.  <a href="#ab211ae66dd9c6cdaf6ce1989b18d9110"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#ae687f32d04c7ec875819393aa8f4b39f">sauvePPM</a> (const char *nom_fichier)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sauve une image PPM.  <a href="#ae687f32d04c7ec875819393aa8f4b39f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a8ceca213fd90b0576369cf11781c7c8b">getL</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Acceseur largeur.  <a href="#a8ceca213fd90b0576369cf11781c7c8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_image.html#a893d84209c876e98159af43b7dcedb98">getH</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Acceseur hauteur.  <a href="#a893d84209c876e98159af43b7dcedb98"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Description détaillée</h2>
<p>Classe <a class="el" href="class_image.html" title="Classe Image RGB.">Image</a> RGB. </p>
<p>La classe permet l'utilisation d'Image RGB </p>
<hr/><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" id="aa08fcce6d2eb9718daf554f05c9da5a4"></a><!-- doxytag: member="Image::Image" ref="aa08fcce6d2eb9718daf554f05c9da5a4" args="(int l=0, int h=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Image::Image </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>l</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>h</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructeur. </p>
<p>Constructeur de la classe <a class="el" href="class_image.html" title="Classe Image RGB.">Image</a></p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>l</em>&nbsp;</td><td>: largeur de l'image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>h</em>&nbsp;</td><td>: hauteur de l'image </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0294f63700543e11c0f0da85601c7ae5"></a><!-- doxytag: member="Image::~Image" ref="a0294f63700543e11c0f0da85601c7ae5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Image::~Image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructeur. </p>
<p>Destructeur de la classe <a class="el" href="class_image.html" title="Classe Image RGB.">Image</a> </p>

</div>
</div>
<hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="a8745ab6aa9ec36b6f1f71a918cf7d9ae"></a><!-- doxytag: member="Image::Afficher" ref="a8745ab6aa9ec36b6f1f71a918cf7d9ae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Image::Afficher </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Afficher l'image. </p>
<p>Methode qui permet d'afficher le sprite de l'image, la methode toSprite doit être appelé préalablement</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ab211ae66dd9c6cdaf6ce1989b18d9110"></a><!-- doxytag: member="Image::chargePPM" ref="ab211ae66dd9c6cdaf6ce1989b18d9110" args="(const char *nom_fichier)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Image::chargePPM </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>nom_fichier</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Charge une image PPM. </p>
<p>Charge une <a class="el" href="class_image.html" title="Classe Image RGB.">Image</a> PPM dans le pointeur data qui est constitué de largeur*hauteur pixels 24 bits (RVB)</p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nom_fichier</em>&nbsp;</td><td>: nom du fichier à charger</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Renvoie 0 si le chargement c'est bien passée, -1 sinon </dd></dl>

</div>
</div>
<a class="anchor" id="a4c36d95a80d8d185e023436ed900e90e"></a><!-- doxytag: member="Image::CopierImage" ref="a4c36d95a80d8d185e023436ed900e90e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_image.html">Image</a> * Image::CopierImage </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copie une image. </p>
<p>Methode qui renvoi une copie de l'image</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne l'image copiée </dd></dl>

</div>
</div>
<a class="anchor" id="afa9cf1dbd0c6a49d03c5601f5b8e714a"></a><!-- doxytag: member="Image::EcritPixel" ref="afa9cf1dbd0c6a49d03c5601f5b8e714a" args="(int x, int y, Pixel couleur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Image::EcritPixel </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_pixel.html">Pixel</a>&nbsp;</td>
          <td class="paramname"> <em>couleur</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ecrit un pixel. </p>
<p>Methode qui permet d'écrire la valeur d'un pixel dans l'image</p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>: coordonnées en x du pixel a remplir </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>: coordonnées en y du pixel a remplir </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>couleur</em>&nbsp;</td><td>: couleur du pixel a remplir </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a1574929d5f59c9d633717e63ae5d780d"></a><!-- doxytag: member="Image::FiltrageLineaire" ref="a1574929d5f59c9d633717e63ae5d780d" args="(FiltreLineaire *fl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_image.html">Image</a> * Image::FiltrageLineaire </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_filtre_lineaire.html">FiltreLineaire</a> *&nbsp;</td>
          <td class="paramname"> <em>fl</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Filtre l'image. </p>
<p>Methode qui permet de filtrer l'image en fonction du filtre passé en parametre. Creer le buffer data.</p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fl</em>&nbsp;</td><td>: filtre utilisé </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne le résultat du filtrage </dd></dl>

</div>
</div>
<a class="anchor" id="a893d84209c876e98159af43b7dcedb98"></a><!-- doxytag: member="Image::getH" ref="a893d84209c876e98159af43b7dcedb98" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Image::getH </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Acceseur hauteur. </p>
<p>Renvoie la hauteur de l'image</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Renvoie la hauteur de l'image </dd></dl>

</div>
</div>
<a class="anchor" id="a8ceca213fd90b0576369cf11781c7c8b"></a><!-- doxytag: member="Image::getL" ref="a8ceca213fd90b0576369cf11781c7c8b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Image::getL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Acceseur largeur. </p>
<p>Renvoie la largeur de l'image</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Renvoie la largeur de l'image </dd></dl>

</div>
</div>
<a class="anchor" id="a119bed9cece01481f95b4ea17576ddc5"></a><!-- doxytag: member="Image::Laplacien" ref="a119bed9cece01481f95b4ea17576ddc5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_image.html">Image</a> * Image::Laplacien </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calcul le laplacien. </p>
<p>Methode qui permet de calculer le laplacien de l'image. Creer le buffer indirectement (le filtrage le fait).</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a0cd0dd469b3d07cf8d80f0650e0065f1"></a><!-- doxytag: member="Image::LitPixel" ref="a0cd0dd469b3d07cf8d80f0650e0065f1" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_pixel.html">Pixel</a> Image::LitPixel </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Lit un pixel. </p>
<p>Methode qui permet de lire la valeur d'un pixel dans l'image</p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>: coordonnées en x du pixel a lire </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>: coordonnées en y du pixel a lire </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne la couleur du pixel </dd></dl>

</div>
</div>
<a class="anchor" id="ae687f32d04c7ec875819393aa8f4b39f"></a><!-- doxytag: member="Image::sauvePPM" ref="ae687f32d04c7ec875819393aa8f4b39f" args="(const char *nom_fichier)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Image::sauvePPM </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>nom_fichier</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sauve une image PPM. </p>
<p>Enregistre sur le disque l'image au format PPM</p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nom_fichier</em>&nbsp;</td><td>: nom du fichier de sauvegarde</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Renvoie 0 si la sauvegarde c'est bien passée, -1 sinon </dd></dl>

</div>
</div>
<a class="anchor" id="ab1ffb3a3fb2af6590a941814c2b2074d"></a><!-- doxytag: member="Image::toSprite" ref="ab1ffb3a3fb2af6590a941814c2b2074d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Image::toSprite </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Transforme l'image en GLubyte. </p>
<p>Methode qui permet de transformer l'image dans un format affichable par OpenGL</p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>void </dd></dl>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir des fichiers suivants :<ul>
<li>/home/r0ots/Prog/Master/m2/inpainting/include/<a class="el" href="_image_8h_source.html">Image.h</a></li>
<li>/home/r0ots/Prog/Master/m2/inpainting/src/Image.cpp</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Généré le Sun Mar 14 17:21:45 2010 pour Inpainting par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
